package com.ztesoft.train.ssh.service;

import java.util.List;

import com.ztesoft.train.ssh.model.Person;


public interface ServiceInterface {
	/**
	 * Get Person with the associated emplid.
	 * @param emplid - Employee ID
	 * @return Person object
	 */
	public Object findbyId(Object id);
	
	
	/**
	 * Get all Person objects.
	 * @return collection of Person objects
	 */
	public List<?> findAllEntity();
	
		
	/**
	 * Update the data repository with the 
	 * state of the provided Person object.
	 * @param person Person object
	 */
	public void update(Object entity);
	
	
	/**
	 * Remove the associated Person
	 * record from the data repository.
	 * @param person
	 */
	public void delete(Object entity);
	
	
	/**
	 * Save the state of the provided
	 * Person object into the data
	 * repository.
	 * @param person
	 */
	public void save(Object entity); 
}
